﻿// Author: Thiago Boufleuhr
// E-mail: boufleuhr@gmail.com

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoufleuhrSolutions.DynamicDTO
{
    [Serializable]
    public class DataTransferProperty
    {
        public string Name { get; set; }
        public object Value { get; set; }
        public DataTransferObject Nested { get; set; }

        public DataTransferProperty()
        {

        }

        public DataTransferProperty(string name)
        {
            this.Name = name;
        }

        public bool HasNested()
        {
            return (Value == null && Nested != null);
        }
    }
}
